package com.whfc.fmam.entity.enums;

/**
 * @author : likang 材料操作权限
 * @version : 1.0
 * @date : 2020-07-29 16:24
 */
public enum MatPlanOptionRule {

    CHECK(10, "fmam/plan/check","审核权限"),

    REVIEW(20, "fmam/plan/review","复审权限"),

    VERIFY(30, "fmam/plan/verify","核验权限");

    private Integer value;

    private String ruleCode;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public String getDesc() {
        return desc;
    }

    MatPlanOptionRule(Integer value, String ruleCode, String desc) {
        this.value = value;
        this.ruleCode = ruleCode;
        this.desc = desc;
    }

    public static MatPlanOptionRule parseValue(int value) {
        switch (value) {
            case 10:
                return CHECK;
            case 20:
                return REVIEW;
            case 30:
                return VERIFY;
            default:
                return null;
        }
    }


}
